<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: #FFA500;
            overflow: hidden;
            position: relative;
            transition: all .5s;
        }

        img {
            width: 200px;
            transition: all 3s;
        }

        img:hover {
            /*transform: rotateZ(45deg);*/
            /*transform: scale(1.5);*/
        }

        div:hover {
            /*top: -5px;*/
            /*right: -5px;*/
            box-shadow: 5px 5px 5px darkgrey;
        }
    </style>
</head>
<body>
<!--
    css动画
       旋转
         rotate
       缩放
         scale(1.5)  大于1  放大  小于1  缩小
-->

<div>
    <img src="2.png">
</div>

</body>
</html>